package com.ddpt.permission.controller;

import com.lh.center.common.base.ResponseEntity;
import com.lh.center.permission.util.GtHttpUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Slf4j
@RestController
@RequestMapping("/api/permission/test")
public class TestController {

    @Resource
    private GtHttpUtil gtHttpUtil;

    // 国泰客户获取接口测试
    @GetMapping("/gtCustomer/{uid}/{phone}")
    public ResponseEntity<String> gtCustomer(@PathVariable("uid") String uid, @PathVariable("phone") String phone) {

        return ResponseEntity.success(gtHttpUtil.getCustomer(uid, phone));
    }
}
